package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bed_info")
public class BedInfo {
    @TableId(value = "bed_id", type = IdType.AUTO)
    private Long bedId;

    @TableField("bed_number")
    private int bedNumber;

    private Short status;

    @TableField(value="elderly_id",updateStrategy = FieldStrategy.IGNORED)
    private Long elderlyId;

    @TableField(exist = false)
    private ElderInfo elderly;

    @TableField("ward_id")
    private Integer wardId;

    private Short floor;

    private BigDecimal price;

    @TableField("is_deleted")
    private Short isDeleted;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
    @TableField(exist = false)
    List<Map<String, Object>> elderMap;

    public List<Map<String, Object>> getElderMap() {
        return elderMap;
    }

    public void setElderMap(List<Map<String, Object>> elderMap) {
        this.elderMap = elderMap;
    }
    public Integer getWardId() {
        return wardId;
    }

    public void setWardId(Integer wardId) {
        this.wardId = wardId;
    }

    public Long getBedId() {
        return bedId;
    }

    public void setBedId(Long bedId) {
        this.bedId = bedId;
    }

    public int getBedNumber() {
        return bedNumber;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public void setBedNumber(int bedNumber) {
        this.bedNumber = bedNumber;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public ElderInfo getElderly() {
        return elderly;
    }

    public void setElderly(ElderInfo elderly) {
        this.elderly = elderly;
    }

    public Short getFloor() {
        return floor;
    }

    public void setFloor(Short floor) {
        this.floor = floor;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Short getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Short isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

}